home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / ufw.preinst < prev    next >
Text File  |  2009-09-23  |  837b  |  25 lines

  1. #!/bin/sh
  2. set -e
  3. # Automatically added by dh_installinit
  4. if [ "$1" = install ] || [ "$1" = upgrade ]; then
  5.     if [ -e "/etc/init.d/ufw" ] && [ ! -L "/etc/init.d/ufw" ]; then
  6.         if [ "`md5sum \"/etc/init.d/ufw\" | sed -e \"s/ .*//\"`" != \
  7.              "`dpkg-query -W -f='${Conffiles}' ufw | sed -n -e \"\\\\' /etc/init.d/ufw '{s/ obsolete$//;s/.* //p}\"`" ]
  8.         then
  9.             echo "Obsolete conffile /etc/init.d/ufw has been modified by you, renaming to .dpkg-bak"
  10.             mv -f "/etc/init.d/ufw" "/etc/init.d/ufw.dpkg-bak"
  11.         else
  12.             rm -f "/etc/init.d/ufw"
  13.         fi
  14.     fi
  15. fi
  16. # End automatically added section
  17. # Automatically added by dh_pycentral
  18. case "$1" in
  19.     install|upgrade)
  20.     mkdir -p /var/lib/pycentral
  21.     echo '# the presence of this file allows calling pkgremove on upgrade' \
  22.         > /var/lib/pycentral/ufw.pkgremove
  23. esac
  24. # End automatically added section
  25.